home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
By Popular Request 2.0
/
By Popular Request 2.0 (Arsenal Computer).ISO
/
amiga_6
/
wbtitl14.lha
/
WBTitle
/
WBTitle14.doc
< prev
next >
Wrap
Text File
|
1995-05-29
|
11KB
|
260 lines
WBTitle Documentation
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
* Update: v1.4 - multi-locale version by Martin Kaim (Gwardar) 25-05-1995
* Note: Any parts of this doc file marked * were added or adapted by Gwardar
* (read them to get a quick grasp of the changes to the previous version)
* Originally Designed and Implemented by Mark Thomas, fine-tuned by Gwardar
This software is placed in the public domain.
You may modify the program or use the code in anyway you see fit.
I make no claims as to the code's fitness for use in any setting.
I make no claims as to the program's fitness for use in any setting.
Use the code or program at your own risk.
* Enhancements, bugfixes, Workbench multi-locale support code
* by Gwardar.
* The entire risk of using this software is with the user. The author(s)
* cannot be held liable for any possible damages arising from the
* use of this software. Apply the usual four-page disclaimer ;->
Motivation
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
I (Mark Thomas) was reading someone's message on Usenet when something he
said made me come up with the idea for this program. The actual technical
notion came from comments in the docs for the VMM virtual memory
program by Martin Apel. Thanks for the clue on patching Intuition.
I also was concerned that there might not be any good source code
example on how to do SetFunction() from C. The source code for this
program is in the archive.
* I (Gwardar) found that WBTitle v1.0 didn't work on non-English WB
* locales; when I had adapted the source and recompiled it, I found it to
* be really useful (after a display bug in the memory amount string had been
* fixed, too).
* Shortly afterwards, I uploaded the update to Aminet. Some time later,
* I got email asking me kindly to release a version with an executable
* compiled for English WB locale, as my version wouldn't work with non-German
* workbench settings. I first thought of doing so, but then I had a better
* idea: only one executable for ALL languages would be much nicer.
* Thus, I added some sort of multi-locale WB support via tooltypes.
* Now, WBTitle is very flexible (configurable to your needs) and has IMHO
* been found a valuable tool on high-resolution WB screens (e.g. Retina-
* equipped machines).
Overview
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
WBTitle is a program that lets you replace your Workbench title bar
with just about any text you like. It also gives you the facilities
to put memory readings in the title bar. At its simplest, you could
replace the title bar with the same text that is already there, and
in the exact same format. But WBTitle allows you to do more. (see Features)
*** NEW: READ THIS ***
Installation
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Put 'WBTitle' where you like in your path. Choose one of 'WBTitle_e.info' or
'WBTitle_d.info' and put it in the same place as the executable under the
name of 'WBTitle.info'.
Have a look at the tooltypes, adjust MATCH1 and MATCH2 according to this
documentation. (The values in the supplied WBTitle(_e|_d).info files should
work with standard English respectively German Workbench locale settings.)
Start WBTitle by double-clicking on it from Workbench. If started from
a Shell it will not find its tooltypes (thus, it won't work) and also block
your Shell until it is quit by running it again (from WB or another shell)).
The WB title should change to the configured string after at max a few
seconds. If you don't like the way it looks, quit WBTitle, adjust the
tooltypes, then start it again.
A good place to put 'WBTitle' and its icon is the 'WBStartup' drawer.
Or, if you still don't like it, put it in the bin... 8-|
**********************
Features
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
The title bar replacement is partitioned into three main parts,
prefix, memory, and postfix. They are combined in the order
prefix-memory-postfix to make the title bar text.
The prefix is just a string of text that appears at the leftmost part
of the title bar. The memory consists of memory strings. There can
be several items in the memory section, shown shortly. The postfix
is simply some text that appears at the end of the title bar text.
As stated above, the memory can have several parts. Each part is a
memory reading (amount of free memory with a label). The memory
displays that are available are chip, fast, public, total, virtual,
and retina. Chip, fast, public, and total are normal Amiga memory
options. Virtual is for use with the VMM program for showing free
virtual memory. Retina is for use with a Retina graphics card for
showing the amount of free graphics memory.
The memory reading consists of the memory value and a label (some
text). All labels come either before the memory value or after the
memory value, which is determined by the LABELS option described
below.
Requirements
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
* For the VMM virtual memory option to work, the library that comes
* with VMM, "vmm.library", will have to be placed in LIBS:.
* Note: the memory string will ONLY be shown when VMM is active, e.g. its
* port can be found in the system port list. As this is only checked once
* on WBTitle startup, VMM memory won't appear in the memory string if VMM
* is activated AFTER WBTitle has been initialized.
* It's easy to handle this 'feature' ;-> if it's a problem to you:
* quit WBTitle, start VMM, restart WBTitle.
* The reasons for *not* checking if VMM is active every time the Workbench
* title gets updated are:
* i) my laziness, as this would require some major modifications to the code
* ii) the additional overhead especially on slow machines (68000)
* iii) VMM's sometimes weird behaviour when trying to quit it (wouldn't
* quit totally, so the port might still be there while the virtual
* memory function was actually deactivated)
* Note: this was the case with old VMM versions - haven't tested v3.1
* yet as I just downloaded it today from Aminet ;-)
* For the Retina gfx board memory option to work, you need a properly
* set up Retina software package and functional hardware.
Options
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
All the options are specified in the tool types to keep the program
size small. Tool types are entered from the Workbench by clicking
on the WBTitle icon and choosing Information... from the Icons menu.
Here are the tool types:
*** NEW: READ THIS ***
MATCH1
The first of the two match strings used to determine your Workbench window
title (allows the patch to distinguish the workbench window title from
other window titles so that they don't get changed).
Defaults to: "Amiga"
MATCH2
The second match string.
Defaults to: "graphics mem"
(There is no order when matching strings to window titles, so MATCH2 may
specify a part of the original title coming *before* the part that MATCH1
specifies just as well as *after*.)
The more specific you are when giving these match strings, the better
the patch can decide whether a window title to be set is Workbench's or not.
You *have* to specify *either* *both* or *none* of the MATCH1/MATCH2
tooltypes, otherwise the patch will probably not work as you'll get a
mixture of your own custom match string and the (other) default string.
If you specify none of these two tooltype arguments, the patch will fail
on all other than the standard English locale WB setup!
Caveat:
If you specify *both* of the strings to be e.g. " ", *all* window titles
containing " " (that is, any number of spaces) will change to WBTitle's
replacement string when they are next refreshed (depends on the application
when/how often that happens). To stop this, run WBTitle again (thus removing
the patch), edit the tooltype entries, save the changes, and restart WBTitle
a second time. It should not be too difficult to find a set of MATCH strings
suiting your specific needs.
**********************
PREFIX
Lets you set the prefix text.
Default: "PREFIX="
SUFFIX
Lets you set the suffix text.
Default: "SUFFIX="
LABELS
Lets you specify if the memory labels are placed before or after
the memory values so that you can do things like "Chip: 1,232,848"
or "1,012 KB Chip Mem".
MEMORDER
Allows you to set the order of the memory readings, as well as which
memory values are to be used. It consists of a several letters that
you arrange in the order you want the readings. Each letter stands
for a particular memory type: C for chip, F for fast, P for public,
T for total, V for virtual, and R for Retina.
Default: "MEMORDER=CVPR"
CHIP
Lets you set the text that appears with the chip memory reading.
Default: "CHIP= Chip"
FAST
Lets you set the text that appears with the fast memory reading.
Default: "FAST= Fast"
PUBLIC
Lets you set the text that appears with the public memory reading.
Default: "PUBLIC= Public"
TOTAL
Lets you set the text that appears with the total memory reading.
Default: "TOTAL= Total"
VIRTUAL
Lets you set the text that appears with the virtual memory reading.
Default: "VIRTUAL= Virtual"
* Text will only appear if VMM is installed and ACTIVE (running)!
RETINA
Lets you set the text that appears with the retina memory reading.
Default: "RETINA= Retina"
* Text will only appear if Retina is installed correctly!
THOUSANDSEP
Lets you choose whether memory values have a separator before each
thousands group or not. If this is set, your memory values would
* have the format "1.228.352". If this is not specified, your memory
values would have the format "1228352".
Default: there is no default
SEPARATOR
Allows you to set the character used to separate the thousands groups
in memory values. This is to allow for other countries.
* Default: "SEPARATOR=," (English locale)
UNITS
Allows you to set the accuracy of the memory values. It's easiest
to show an example. If you have a memory value 1,228,352 and this
is set to 1, then that's exactly what you see, 1,228,352. If you
wanted to see only how many kilobytes you have free, you can set the
value to 1024 and you would see 1,199, since that's the number of
kilobytes in 1,228,352. So whatever value is the real memory
setting, it gets divided by this value. Setting to 0 will end up as
a setting of 1 so that divides by zero are avoided.
Default: "UNITS=1"